// Variables
@import 'variables';

// Bootstrap
@import '~bootstrap/scss/bootstrap';

// Fontawesome
@import '~@fortawesome/fontawesome-free/scss/fontawesome';
@import '~@fortawesome/fontawesome-free/scss/regular';
@import '~@fortawesome/fontawesome-free/scss/solid';
@import '~@fortawesome/fontawesome-free/scss/brands';

/* universal */

body {
  font-family: Helvetica, "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  background: url(//s1.hdslb.com/bfs/static/blive/blfe-message-web/static/img/infocenterbg.a1a0d152.jpg) top/cover no-repeat fixed;
}

/* header */

.navbar-static-top {
  border-color: #e7e7e7;
  background-color: #fff;
  box-shadow: 0px 1px 11px 2px rgba(42, 42, 42, 0.1);
  border-top: 4px solid #00b5ad;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 40px;
  margin-top: 0px;
}

/* Sticky footer styles */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  /* Set the fixed height of the footer here */
  height: 60px;
  background-color: #000;

  .container {
    padding-right: 15px;
    padding-left: 15px;

    p {
      margin: 19px 0;
      color: #c1c1c1;

      a {
        color: inherit;
      }
    }
  }
}

.title {
  text-align: center;
}

.qq {
  &::before {
    display: inline-block;
    content: "";
    width: 28px;
    height: 28px;
    margin-right: 8px;
    background: url() no-repeat;
    background-size: cover;
    vertical-align: middle;

  }

  text-align: center;
}
.chat-box {
  display: flex;
}

.left {
  border-right: 1px solid #e9eaec;
}

.list {
  width: 210px;
}

.list-item {
  overflow: hidden;
  display: flex;
  padding: 20px 0px;
  position: relative;

  &:hover {
    background-color: #e4e5e6;

    .close {
      transform: translateX(-0%);
      opacity: 1;
    }
  }
}

.avatar-container{
  margin-right: 8px;
}

.close {
  top: 0;
  bottom: 0;
  left: 0;
  justify-content: center;
  -webkit-box-align: center;
  transform: translateX(-100%);
  width: 20px;
  padding: 0px 4px;
  transition: 300ms;
  display: flex;
  -webkit-box-pack: center;
  align-items: center;
  opacity: 0;
  color: #999;
}

.red-dot-notify{
  text-align: center;
  position: absolute;
  background-color: #fb7299;
  width: 6px;
  height: 6px;
  top: 28px;
  right: 20px;
  border-radius: 50%;
}

.avatar {
  display: block;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.active {
  background-color: #e4e5e6;
}

.last-message {
  overflow: hidden;
  width: 100%;
  max-width: 180px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.messages-list {
  height: 500px;
  background-color: #f4f5f7;
  overflow-x: hidden;
  overflow-y: scroll;
  &::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background-color: rgba(1, 1, 1, 0);
  }

  &::-webkit-scrollbar-thumb {
    background: #aaa;
    border-radius: 4px;
  }
}

.msg-more {
  text-align: center;
  padding: 16px 0 0 0;
}

.msg-time {
  padding: 16px 0px;
  text-align: center;
}

.resend {
  padding: 15px 0px;
  color: #ff6464;
  cursor:pointer;
}

.messages-list {
  .msg-item, .is-me {
    a {
      min-width: 50px;
    }
    .message {
      padding: 8px 0px;
      max-width: 480px;
      margin: 0 10px;
      overflow: hidden;

      .message-content {
        background: #80b9f2;
        border-radius: 16px 0 16px 16px;
        padding: 8px 16px;
        line-height: 1em;
      }

      .not-me, .is-me {
        font-size: 14px;
        padding: 8px 16px;
        word-wrap: break-word;
        word-break: break-word;
        overflow: hidden;
      }

      .not-me {
        background: #FFFFFF;
        border-radius: 0 16px 16px 16px;
      }

      .is-me {
        color: #FFFFFF;
        background: #80b9f2;
        border-radius: 16px 0 16px 16px;
      }
    }
  }

  .msg-item {
    display: flex;
    min-height: 48px;
    padding: 0 16px 16px;
    overflow: hidden;
    width: 100%;

  }

  .is-me {
    float: right;
    flex-direction: row-reverse;
  }

  .not-me {
    float: left;
  }
}

.row {
  .col {
    padding: 0;
  }

  .left, .right {
    padding: 0;
    background-color: #fff;
    border-radius: 4px;
  }
}

.right {
  flex-grow: 1;
}

.router-view {
  background-color: rgba(255, 255, 255, 0.5);
  padding: 10px 10px;
  border-radius: 4px;

  .container {
    padding: 0;
    margin: 0;

    .row {
      margin: 0;
    }
  }
}

.col, .dialog {
  .title {
    min-height: 35px;
    line-height: 35px;
    border-bottom: 1px solid #e9eaec;
  }
}

.editor {
  width: 100%;
  min-height: 60px;
  max-height: 60px;
  letter-spacing: 1px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  white-space: pre-wrap;
  overflow-x: hidden;
  overflow-y: auto;
  color: #222;
  background-color: transparent;
  font-size: 14px;
  vertical-align: baseline;
  outline: none;
  line-height: normal;
  border-radius: 4px;
  word-break: break-word;
  word-wrap: break-word;

  &::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background-color: rgba(1, 1, 1, 0);
  }

  &::-webkit-scrollbar-thumb {
    background: #aaa;
    border-radius: 4px;
  }
}

.send-box {
  padding: 20px 20px;
  min-height: 200px;
}

.tool-container {
  height: 45px;
  align-items: center;
  display: flex;
}

.send-button-container {
  align-items: center;
  height: 50px;
  display: flex;
  justify-content: flex-end;

  .send-btn {
    background-color: #fff;
    border-radius: 4px;
    cursor: pointer;
    margin: 0;
    position: relative;
    width: 88px;
    height: 30px;
    text-align: center;
    border: 1px solid #e7e7e7;
    outline: none;
  }
}


.css-1dtzbno {
  fill: currentcolor;
  width: 1em;
  height: 1em;
}

.upload-container {
  display: inline-block;
  margin-right: 10px;

  .image-upload-btn {
    display: block;
    width: 22px;
    height: 21px;
    cursor: pointer;
    background: url() no-repeat;
    background-size: 22px;
  }
}

.emoji-container {
  display: inline-block;

  .emotion-btn-box {
    display: block;
    width: 24px;
    height: 24px;
    cursor: pointer;
    background: url() center/24px no-repeat;
  }
}

@media screen and (max-width: 960px) {
  .left {
    min-width: 85px;
    width: 85px;
  }
  .msg-item {
    a {
      display: none;
    }
  }
  .name-container {
    display: none;
    padding: 0 5px;
  }
  .messages-list {
    height: 300px;
  }
  body {
    min-width: 350px;
  }
  .list-item {
    position: inherit;
  }
  .red-dot-notify {
    position: inherit;
  }
  .avatar-container {
    margin-right: 0px;
  }
}